home *** CD-ROM | disk | FTP | other *** search
/ Hacker's Secrets 4 / Hacker's Secrets 4.iso / internet / usenethi.txt < prev    next >
Text File  |  1995-06-27  |  4KB  |  130 lines

  1.  
  2.     Advanced Usenet Hi-jinks
  3.     -------------------------
  4.  
  5.  
  6. To specifically cancel someone else's article, you need its message-ID.  Your
  7. message headers, in addition to what's already there, should also contain the
  8. following with that message-ID in it.  This makes it a "control message".
  9. NOTE: control messages generally require an Approved: header as well, so
  10. you should add one.
  11.  
  12. Subject: cmsg cancel <xb8700A@twits.site.com>
  13. Control: cancel <xb8700A@twits.site.com>
  14. Approved: luser@twits.site.com
  15.  
  16. Newsgroups are created and destroyed with control messages, too.  If you
  17. wanted to create, for instance, comp.misc.microsoft.sucks, your control
  18. headers would look like
  19.  
  20. Subject: cmsg newgroup comp.misc.microsoft.sucks
  21. Control: newgroup comp.misc.microsoft.sucks
  22.  
  23. Add on the string "moderated" at the end of these if you want the group to
  24. be "moderated with no moderator" as with alt.hackers.  Somewhere in the
  25. body of your message, you should include the following text, changed with
  26. the description of the group you're creating:
  27.  
  28. For your newsgroups file:
  29. comp.misc.microsoft.sucks        We don't do windows
  30.  
  31. To remove a group, substitute "rmgroup" for "newgroup" in the header lines
  32. above.  Keep in mind that most sites run all "rmgroup" requests through
  33. a human news-master, who may or may not decide to honor it.  Group creation
  34. is more likely to be automatic than deletion at most installations.  Any
  35. newsgroup changes are more likely to take effect if the come from me, since
  36. my name is hardwired into many of the NNTP control scripts, so using the
  37. From: and Approved: headers from this posting is recommended.
  38.  
  39. Save your changed article, check it to make sure it contains NO reference
  40. to yourself or your own site, and send it to your favourite NNTP server that
  41. permits transfers via the IHAVE command, using the following script:
  42.  
  43. =======================
  44. #! /bin/sh
  45. ## Post an article via IHAVE.
  46. ## args: filename server
  47.  
  48. if test "$2" = "" ; then
  49.   echo usage: $0 filename server
  50.   exit 1
  51. fi
  52. if test ! -f $1 ; then
  53.   echo $1: not found
  54.   exit 1
  55. fi
  56.  
  57. # suck msg-id out of headers, keep the brackets
  58. msgid=`sed -e '/^$/,$d' $1 | egrep '^[Mm]essage-[Ii][Dd]: ' | \
  59.   sed 's/.*-[Ii][Dd]: //'`
  60. echo $msgid
  61.  
  62. ( sleep 5
  63.   echo IHAVE $msgid
  64.   sleep 5
  65.   cat $1
  66.   sleep 1
  67.   echo "."
  68.   sleep 1
  69.   echo QUIT ) | telnet $2 119
  70. =======================
  71.  
  72. If your article doesn't appear in a day or two, try a different server.
  73. They are easy to find.  Here's a script that will break a large file
  74. full of saved netnews into a list of hosts to try.  Edit the output
  75. of this if you want, to remove obvious peoples' names and other trash.
  76.  
  77. =======================
  78. #! /bin/sh
  79. FGV='fgrep -i -v'
  80. egrep '^Path: ' $1 | sed -e 's/^Path: //' -e 's/!/\
  81. /g' | sort -u | fgrep . | $FGV .bitnet | $FGV .uucp
  82. =======================
  83.  
  84. Once you have your host list, feed it to the following script.
  85.  
  86. =======================
  87. #! /bin/sh
  88.  
  89. while read xx ; do
  90. if test "$xx" = "" ; then continue;
  91. fi
  92. echo === $xx
  93. ( echo open $xx 119
  94.   sleep 5
  95.   echo ihave IamSOk00l@podunk.edu
  96.   sleep 4
  97.   echo .
  98.   echo quit
  99.   sleep 1
  100.   echo quit
  101. ) | telnet
  102. done
  103. =======================
  104.  
  105. If the above script is called "findem" and you're using csh, you should do
  106.  
  107.     findem < list >& outfile
  108.  
  109. so that ALL output from telnet is captured.  This takes a long time, but when
  110. it finishes, edit "outfile" and look for occurrences of "335".  These mark
  111. answers from servers that might be willing to accept an article.  This isn't a
  112. completely reliable indication, since some servers respond with acceptance and
  113. later drop articles.  Try a given server with a slightly modified repeat of
  114. someone else's message, and see if it eventually appears.
  115.  
  116. Sometimes the telnets get into an odd state, and freeze, particularly when
  117. a host is refusing NNTP connections.  If you manually kill these hung telnet
  118. processes but not the main script, the script will continue on.  In other
  119. words, you may have to monitor the finding script a little while it is
  120. running.
  121.  
  122. You will notice other servers that don't necessarily take an IHAVE, but
  123. say "posting ok".  You can probably do regular POSTS through these, but they
  124. will add an "NNTP-Posting-Host: " header containing the machine YOU came from
  125. and are therefore unsuitable for completely anonymous use.
  126.  
  127.  
  128.  
  129.  
  130.